﻿<%@ Page Title="Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false"
    CodeBehind="Default.aspx.vb" Inherits="Assignment_2___Prototype._Default" %>

<%@ Register assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI.DataVisualization.Charting" tagprefix="asp" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <style type="text/css">
        .style1
        {
            width: 471px;
        }
    </style>
    </asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
    This is a Place where you can share your views about your Pet Parrots and interact with other Parrot Lovers.</h2>

    <br />
     <br />
    <table height="600" border="0" style="width: 883px">
   
   <tr >

   <td class="style1">    <span 
            style="font-size:12.0pt;line-height:200%;font-family: &quot;Times New Roman&quot;,&quot;serif&quot;: #000000;; mso-ascii-theme-font:major-bidi; font-family: Calibri; color: #000000; font-weight: bold;"> 
       
         The parrots are a broad order of more than 350 birds. Macaws, Amazons, lorikeets, lovebirds, cockatoos and many others are all considered parrots.

Though there is great diversity among these birds, there are similarities as well. All parrots have curved beaks and all are zygodactyls, meaning they have four toes on each foot, two pointing forward and two projecting backward. Most parrots eat fruit, flowers, buds, nuts, seeds, and some small creatures such as insects.


         
       
    </span>    </td>

   <td>  
   <asp:Image ID="Image2" runat="server" ImageUrl="/Images/macaw-scarlet-2.png" 
                Height="305px" Width="377px" /></td>


   </tr>


   <tr>
   <td class="style1">  
         
           <asp:Image ID="Image1" runat="server" ImageUrl="/Images/crimson-wing-parrot-branch.png" 
                Height="382px" Width="468px" style="margin-left: 0px" />  </td>
                <td>   
                 <span 
            style="font-size:12.0pt;line-height:200%;font-family:
&quot;Times New Roman&quot;,&quot;serif&quot;: #000000;; mso-ascii-theme-font:major-bidi; font-family: Calibri; color: #000000; font-weight: bold;">
       Parrots are found in warm climates all over most of the world. The greatest diversities exist in Australasia, Central America, and South America.

Many parrots are kept as pets, especially macaws, Amazon parrots, cockatiels, parakeets, and cockatoos. These birds have been popular companions throughout history because they are intelligent, charismatic, colorful, and musical. Some birds can imitate many nonavian sounds, including human speech. The male African gray parrot (Psittacus erithacus) is the most accomplished user of human speech in the animal world; this rain forest-dweller is an uncanny mimic.<br />
        
        </span>   </td>
  

   </tr>

   <tr >

   <td class="style1">  

   <br />
       <h2>Top 5 Highest rated Parrots.</h2><br />
       <asp:Chart ID="Chart1" runat="server" DataSourceID="SqlDataSource1" 
           ImageStorageMode="UseImageLocation" Height="384px" Width="421px">
           <series>
               <asp:Series Name="Series1" XValueMember="Species" YValueMembers="AverageRating" 
                   ChartType="Doughnut" YValuesPerPoint="4">
               </asp:Series>
           </series>
           <chartareas>
               <asp:ChartArea Name="ChartArea1">
               </asp:ChartArea>
           </chartareas>
       </asp:Chart>
       <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
           ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
           ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
           
           SelectCommand="SELECT [AverageRating], [Species] FROM [Parrot _AvgRating_Query]">
       </asp:SqlDataSource>
   <br />
   <br />

   <add key="ChartImageHandler" 
   value="Storage=file;Timeout=20;Url=~/TempImages/;"/>


   


   </td>


   <td>

   <h2>Top 5 most liked images.</h2>

   <br />
   <asp:Chart ID="Chart2" runat="server" DataSourceID="SqlDataSource2" Height="389px" 
           Width="367px">
    <Series>
        <asp:Series Name="Series1" XValueMember="ImageDescription" 
            YValueMembers="Likes" YValuesPerPoint="4">
        </asp:Series>
    </Series>
    <ChartAreas>
        <asp:ChartArea Name="ChartArea1">
        </asp:ChartArea>
    </ChartAreas>
</asp:Chart>


       <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
           ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
           ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
           SelectCommand="SELECT [Likes], [ImageDescription] FROM [Image_Like_ Query_1]">
       </asp:SqlDataSource>


</td>
   </tr>






   </table>





            
   <div align='center'><a href='http://www.hit-counts.com'><img src='http://www.hit-counts.com/counter.php?t=MTI0NTY0Mg==' border='0' alt='Visitor Counter'></a><BR><a href='http://www.hit-counts.com'>Visitor Counter</a></div>
    </asp:Content>
